{% extends "tasks/layout.html" %}

{% block body %}
    <h1>Add Task</h1>
    <ul>
        {% for item in tasks %}
            <li>{{ item }}</li>
        {% empty %}
            <li>No tasks.</li>
        {% endfor %}
    </ul>

<a href="{% url 'tasks:add' %}">Add a new Task</a>
{% endblock %}
